package com.fourforfo.fourmall.product.feign;

import com.fourforfo.common.to.SkuStockTO;
import com.fourforfo.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * 在商品服务中远程调用fourmall_ware的接口
 */
@FeignClient("fourmall-ware")
public interface WareFeignService {
    /**
     * 根据skuIds查出所有的sku库存信息
     * @param skuIds
     */
    @PostMapping("/ware/waresku/list/skus/stock")
    R listBySkus(@RequestBody List<Long> skuIds);

}
